<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>报表页面</title>
    <link rel="stylesheet" href="../layui/css/layui.css" media="all">
    <link rel="stylesheet" href="font/iconfont.css" media="all">
    <style>
        .title{
            font-size: 18px;
            font-weight: 500;
            letter-spacing:3px
        }
        .tableAuto{
            margin: 0 auto;
            /*padding: 0;*/
            font-size: 13px;
            width: 1000px;
        }
        #table_body1 tr>td,#table_body2>tbody tr td{
            /*border: solid 2px #000000;*/
            text-align: center;
        }
        #table_body2>thead tr td{
            /*border: solid 2px #000000;*/
            border-top: none;
            text-align: center;
        }
    </style>
</head>
<body>
<div id="dayin" ><!--startprint-->
    <div class="tableAuto">
        <table border="0" cellspacing="0" width="100%" style="table-layout:fixed;">
            <caption  ><span class="title" >金沙江白鹤滩水电站工程</span></caption>
            <caption style="padding: 10px 0;"><span class="title">灌浆施工记录表（记录仪格式）</span></caption>
            <tr>
                <td width="40%">合同编号：<span style="margin-left: 10px">BHT/0416</span></td>
                <td width="40%">单元工程编码：<span style="margin-left: 10px">06-44-27-6116</span></td>
                <td>表单流水号：<span style="margin-left: 10px">...</span></td>
            </tr>
            <tr>
                <td>承包人：<span style="margin-left: 10px">水电七局白鹤滩施工局</span></td>
                <td>监理：<span style="margin-left: 10px">长江设计院白鹤滩监理部</span></td>
            </tr>
        </table>
        <div class="tableBody">
            <table border="1" cellspacing="0" width="100%" id="table_body1" style="border:solid 1px #000000;margin-top: 5px;font-size: 14px;table-layout:fixed;" >
                <tbody>
                <tr style="height: 30px">
                    <td colspan="2">单位工程名称</td>
                    <td colspan="2"><span>大坝工程</span></td>
                    <td colspan="2">分部工程名称</td>
                    <td colspan="2"><span>灌浆排水平洞</span></td>
                    <td colspan="2">分项工程名称</td>
                    <td colspan="2"><span>帷幕灌浆</span></td>
                </tr>
                <tr style="height: 40px">
                    <td colspan="2">单元工程名称</td>
                    <td colspan="2"><span>第6层主帷幕第16单元</span></td>
                    <td colspan="2">孔号</td>
                    <td colspan="2"><span>WML6-16-02-15</span></td>
                    <td colspan="2">桩号</td>
                    <td colspan="2"><span>LGL6K0+480.0</span></td>
                </tr>
                <tr style="height: 60px">
                    <td colspan="2">孔口高程(m)</td>
                    <td colspan="2"><span>592.25</span></td>
                    <td>排序</td>
                    <td><span>02</span></td>
                    <td>孔序</td>
                    <td><span>III序孔</span></td>
                    <td colspan="2">施工时段</td>
                    <td colspan="2"><span>2019.08.14 05:23:18</span>至<br><span>2019.08.14 06:01:18</span></td>
                </tr>
                <tr style="height: 50px">
                    <td colspan="3">射浆管距孔底：<span>20.0</span>cm</td>
                    <td colspan="3">设计灌浆压力：<span>5.0</span>MPa</td>
                    <td colspan="2">段次：<span>005</span></td>
                    <td colspan="2">
                        段位：自<span>15.80</span>m至 <span>20.80</span>m
                    </td>
                    <td colspan="2">段长：<span>5.00</span>m</td>
                </tr>
                </tbody>
            </table>
            <table border="1" cellspacing="0" width="100%" id="table_body2" style="border:solid 1px #000000;border-top: none;table-layout:fixed;">
                <thead>
                    <tr style="text-align: center;">
                        <td colspan="1">时间(h:min)</td>
                        <td colspan="1">平均压力(MPa)</td>
                        <td colspan="1"> 最大压力(MPa)</td>
                        <td colspan="1">进浆流量(L/min)</td>
                        <td colspan="1">回浆流量(L/min)</td>
                        <td colspan="1">注入率(L/min)</td>
                        <td colspan="1">累计注浆量(L)</td>
                        <td colspan="1">累计注灰量(Kg)</td>
                        <td colspan="1">浆液水灰比</td>
                        <td colspan="1">浆液密度(g/cm³)</td>
                        <td colspan="1">累计抬动(μm)</td>
                        <td colspan="1">温度(℃)</td>
                        <td colspan="1">备注</td>
                    </tr>
                </thead>
                <tbody>
                <tr style="text-align: center;">
                    <td>05:23:18</td>
                    <td>0.75</td>
                    <td>0.75</td>
                    <td>80.1</td>
                    <td>0.0</td>
                    <td>80.10</td>
                    <td>0.0</td>
                    <td>0.0</td>
                    <td>5.0</td>
                    <td>1.13</td>
                    <td>0</td>
                    <td>0</td>
                    <td>开始</td>
                </tr>
                <tr style="text-align: center;">
                    <td>05:25:24</td>
                    <td>0.77</td>
                    <td>0.8</td>
                    <td>80.0</td>
                    <td>0.0</td>
                    <td>80.00</td>
                    <td>168.0</td>
                    <td>31.6</td>
                    <td>5.0</td>
                    <td>1.13</td>
                    <td>0</td>
                    <td>0</td>
                    <td>管孔容</td>
                </tr>
                <tr style="text-align: center;">
                    <td>05:26:08</td>
                    <td>2.35</td>
                    <td>2.35</td>
                    <td>78.2</td>
                    <td>78.2</td>
                    <td>0.00</td>
                    <td>168.0</td>
                    <td>31.6</td>
                    <td>5.3</td>
                    <td>1.12</td>
                    <td>0</td>
                    <td>0</td>
                    <td>继续</td>
                </tr>
                <tr style="text-align: center;">
                    <td>05:26:08</td>
                    <td>2.35</td>
                    <td>2.35</td>
                    <td>78.2</td>
                    <td>78.2</td>
                    <td>0.00</td>
                    <td>168.0</td>
                    <td>31.6</td>
                    <td>5.3</td>
                    <td>1.12</td>
                    <td>0</td>
                    <td>0</td>
                    <td>继续</td>
                </tr>
                </tbody>
                <tfoot>
                <table border="0" cellspacing="0" width="100%" style="border: solid 1px #000000;border-top: none">
                    <tr>
                        <td>累计注浆量：</td>
                        <td><span>168.0</span>(L)</td>
                        <td>孔管占浆量：</td>
                        <td><span>168.0</span>(L)</td>
                        <td>废弃浆量：</td>
                        <td><span>48.0</span>(L)</td>
                    </tr>
                    <tr>
                        <td>累计注灰量：</td>
                        <td><span>31.6</span>(Kg)</td>
                        <td>孔管占灰量：</td>
                        <td><span>32.3</span>(Kg)</td>
                        <td>废弃灰量：</td>
                        <td><span>9.2</span>(Kg)</td>
                    </tr>
                    <tr>
                        <td>单位注灰量：</td>
                        <td><span>0.0</span>(Kg/m)</td>
                        <td>纯灌时间：</td>
                        <td><span>37</span>(min)</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                </tfoot>
            </table>
        </div>
        <table border="0" cellspacing="0" width="100%" style="table-layout:fixed;">
            <tr>
                <td width="20%">初检：</td>
                <td width="20%">复检：</td>
                <td width="20%">终检：</td>
                <td width="20%">监理：</td>
                <td width="20%">2019年08月14日</td>
            </tr>
        </table>
    </div>
    <!--<table border="0" cellspacing="0" width="100%" style="table-layout:fixed;">
        <caption style="padding: 10px 0;"><span class="title">灌浆施工记录表（记录仪格式）</span></caption>
        <tr>
            <td width="40%">合同编号：<span style="margin-left: 10px">BHT/0416</span></td>
            <td width="40%">单元工程编码：<span style="margin-left: 10px">06-44-27-6116</span></td>
            <td>表单流水号：<span style="margin-left: 10px">...</span></td>
        </tr>
        <tr>
            <td>承包人：<span style="margin-left: 10px">水电七局白鹤滩施工局</span></td>
            <td>监理：<span style="margin-left: 10px">长江设计院白鹤滩监理部</span></td>
        </tr>
    </table>
    <table border="2" cellspacing="0" width="100%" style="table-layout: fixed">
        <thead>
            <tr style="height: 30px">
                <td colspan="2">单位工程名称</td>
                <td colspan="2"><span>大坝工程</span></td>
                <td colspan="2">分部工程名称</td>
                <td colspan="2"><span>灌浆排水平洞</span></td>
                <td colspan="2">分项工程名称</td>
                <td colspan="2"><span>帷幕灌浆</span></td>
            </tr>
            <tr style="height: 40px">
                <td colspan="2">单元工程名称</td>
                <td colspan="2"><span>第6层主帷幕第16单元</span></td>
                <td colspan="2">孔号</td>
                <td colspan="2"><span>WML6-16-02-15</span></td>
                <td colspan="2">桩号</td>
                <td colspan="2"><span>LGL6K0+480.0</span></td>
            </tr>
            <tr style="height: 60px">
                <td colspan="2">孔口高程(m)</td>
                <td colspan="2"><span>592.25</span></td>
                <td>排序</td>
                <td><span>02</span></td>
                <td>孔序</td>
                <td><span>III序孔</span></td>
                <td colspan="2">施工时段</td>
                <td colspan="2"><span>2019.08.14 05:23:18</span>至<br><span>2019.08.14 06:01:18</span></td>
            </tr>
            <tr style="height: 50px">
                <td colspan="3">射浆管距孔底：<span>20.0</span>cm</td>
                <td colspan="3">设计灌浆压力：<span>5.0</span>MPa</td>
                <td colspan="2">段次：<span>005</span></td>
                <td colspan="2">
                    段位：自<span>15.80</span>m至 <span>20.80</span>m
                </td>
                <td colspan="2">段长：<span>5.00</span>m</td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="13">

                    &lt;!&ndash;<table border="2" cellspacing="0" width="100%" id="table_body1" style="margin-top: 5px;table-layout:fixed;" >
                        <tbody>

                        </tbody>
                    </table>&ndash;&gt;
                    <table border="2" cellspacing="0" width="100%" id="table_body2" style="border-top: none;table-layout:fixed;">
                        <thead>
                        <tr>
                            <td>时间(h:min)</td>
                            <td>平均压力(MPa)</td>
                            <td>最大压力(MPa)</td>
                            <td>进浆流量(L/min)</td>
                            <td>回浆流量(L/min)</td>
                            <td>注入率(L/min)</td>
                            <td>累计注浆量(L)</td>
                            <td>累计注灰量(Kg)</td>
                            <td>浆液水灰比</td>
                            <td>浆液密度(g/cm³)</td>
                            <td>累计抬动(μm)</td>
                            <td>温度(℃)</td>
                            <td>备注</td>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>05:23:18</td>
                            <td>0.75</td>
                            <td>0.75</td>
                            <td>80.1</td>
                            <td>0.0</td>
                            <td>80.10</td>
                            <td>0.0</td>
                            <td>0.0</td>
                            <td>5.0</td>
                            <td>1.13</td>
                            <td>0</td>
                            <td>0</td>
                            <td>开始</td>
                        </tr>
                        <tr>
                            <td>05:25:24</td>
                            <td>0.77</td>
                            <td>0.8</td>
                            <td>80.0</td>
                            <td>0.0</td>
                            <td>80.00</td>
                            <td>168.0</td>
                            <td>31.6</td>
                            <td>5.0</td>
                            <td>1.13</td>
                            <td>0</td>
                            <td>0</td>
                            <td>管孔容</td>
                        </tr>
                        <tr>
                            <td>05:26:08</td>
                            <td>2.35</td>
                            <td>2.35</td>
                            <td>78.2</td>
                            <td>78.2</td>
                            <td>0.00</td>
                            <td>168.0</td>
                            <td>31.6</td>
                            <td>5.3</td>
                            <td>1.12</td>
                            <td>0</td>
                            <td>0</td>
                            <td>继续</td>
                        </tr>
                        <tr >
                            <td>05:26:08</td>
                            <td>2.35</td>
                            <td>2.35</td>
                            <td>78.2</td>
                            <td>78.2</td>
                            <td>0.00</td>
                            <td>168.0</td>
                            <td>31.6</td>
                            <td>5.3</td>
                            <td>1.12</td>
                            <td>0</td>
                            <td>0</td>
                            <td>继续</td>
                        </tr>
                        </tbody>

                    </table>



                </td>
            </tr>
        </tbody>
        <tfoot>
        <table border="0" cellspacing="0" width="100%" style="border: solid 2px #000000;border-top: none">
            <tr>
                <td>累计注浆量：</td>
                <td><span>168.0</span>(L)</td>
                <td>孔管占浆量：</td>
                <td><span>168.0</span>(L)</td>
                <td>废弃浆量：</td>
                <td><span>48.0</span>(L)</td>
            </tr>
            <tr>
                <td>累计注灰量：</td>
                <td><span>31.6</span>(Kg)</td>
                <td>孔管占灰量：</td>
                <td><span>32.3</span>(Kg)</td>
                <td>废弃灰量：</td>
                <td><span>9.2</span>(Kg)</td>
            </tr>
            <tr>
                <td>单位注灰量：</td>
                <td><span>0.0</span>(Kg/m)</td>
                <td>纯灌时间：</td>
                <td><span>37</span>(min)</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
        </tfoot>
    </table>
    <table border="0" cellspacing="0" width="100%" style="table-layout:fixed;">
        <tr>
            <td width="20%">初检：</td>
            <td width="20%">复检：</td>
            <td width="20%">终检：</td>
            <td width="20%">监理：</td>
            <td width="20%">2019年08月14日</td>
        </tr>
    </table>-->
    <!--endprint-->
</div>
<iframe id="iframe1" style="display: block;width: 100%" src="reportCheckPage.html"></iframe>
<button>打印</button>

<script src="../layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['form','jquery','layer'],function () {
        var form = layui.form,
            $ = layui.jquery;



        $("button").click(function(){
            bdhtml=$("#dayin").html();
            //alert(bdhtml);
            sprnstr="<!--startprint-->";   //开始打印标识字符串有17个字符
            eprnstr="<!--endprint-->";        //结束打印标识字符串
            prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); //从开始打印标识之后的内容
            prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//截取开始标识和结束标识之间的内容
            var iframe = null;
            iframe = document.getElementById("iframe1");

            var iwindow = null;
            var iwindow = iframe.contentWindow;//获取iframe的window对象
            // iwindow.document.close();
            // iwindow.document.write(prnhtml);
            // iwindow.document.write(prnhtml);
            // iwindow.document.body.innerHTML(prnhtml);
            // iwindow.print(); //调用浏览器的打印功能打印指定区域
            window.document.body.innerHTML=prnhtml;
            window.print();
        });
    })



</script>
</body>
</html>